import React, {useState, lazy} from 'react';
import User from './User';
import Login from './Login';
const Forget = lazy(() => import('./Forget'));
const Register = lazy(() => import('./Register'));
const Email = lazy(() => import('./Email'));
const Realname = lazy(() => import('./Realname'));
// const Behavior = import('./hehavior/Behavior');
import Behavior from './hehavior/Behavior';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
const LoginRouter = () => {
  return (
    <Stack.Navigator
      initialRouteName="User"
      screenOptions={{
        animation: 'slide_from_right',
      }}>
      <Stack.Screen
        name="主页"
        component={User}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="登录"
        component={Login}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="忘记密码"
        component={Forget}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="注册"
        component={Register}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="修改邮箱"
        component={Email}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="修改昵称"
        component={Realname}
        options={{
          presentation: 'card',
        }}
      />
      <Stack.Screen
        name="我的足迹"
        component={Behavior}
        options={{
          presentation: 'card',
        }}
      />
    </Stack.Navigator>
  );
};
export default LoginRouter;
